package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketCoupon;
import com.cskaoyan.market.db.domain.MarketCouponUser;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.io.IOException;
import java.util.List;

public interface AdminCouPonService {
    List<MarketCoupon> getCouponList(String page, String limit, String name, String type, String status, String sort, String order);

    void update(MarketCoupon marketCoupon) throws IOException;

    void delete(MarketCoupon marketCoupon) throws JsonProcessingException;

    MarketCoupon getOneCouponDetail(Integer id);

    List<MarketCouponUser> queryUserCoupon(int page, int limit, String sort, String order, Integer couponId, Integer userId, Short status);

    int createOne(MarketCoupon marketCoupon);
}
